how to subtract localdatetime in java

53

how to subtract localdatetime in java -

LocalDateTime from = ... ;
LocalDateTime to = ... ;
Duration duration = Duration.between(from, to);

Comments

Submit
0 Comments